package com.xdwanj.smartcity.data.repository;

import androidx.lifecycle.LiveData;

import com.xdwanj.smartcity.data.request.UploadRequest;

import java.util.Map;

public interface IUploadRepository {
    /**
     * 上传文件和参数列表
     *
     * @param fileEntity 文件实体
     * @param params     参数集合
     * @return 成功与否
     * @throws Exception
     */
    LiveData<Boolean> upload(UploadRequest.FileEntity fileEntity, Map<String, Object> params) throws Exception;
}
